package com.newcoder.community.serverce;

import com.newcoder.community.pojo.LoginTicket;
import com.newcoder.community.pojo.User;

import java.util.Map;

public interface UserService {
    public User selectById(int id);
    public User selectByName(String username);
    public Map<String,Object> register(User user);
    public int activation(int userId, String code);
    public LoginTicket findLoginTicket(String ticket);
    public int updateHeader(int userId,String headerUrl);
    public int updatePassword(int userId,String Password);
}
